package com.wsx.sky.http.bean;

import com.wsx.sky.http.Bean;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**
 * @author wangshuaixin
 * @Title: com.wsx.sky.http.bean.HttpResponse
 * @Description: TODO
 * @date 2018/12/10
 */
public class HttpResponse extends Bean {

    @Setter @Getter private int code = 200;
    @Setter @Getter private String msg = "成功";
    @Setter @Getter private Map<String, Object> datas;

    public HttpResponse buildDatas(Map<String, Object> datas) {
        this.datas = datas;
        return this;
    }
    public HttpResponse buildMsg(String msg) {
        this.msg = msg;
        return this;
    }
    public HttpResponse buildCode(int code) {
        this.code = code;
        return this;
    }
}
